﻿using System;

public class MyApp
{
	static void Main()
	{
		DateTime curDate = DateTime.Now;//建立时间
		Console.WriteLine("Date:" + curDate);//系统时间
		Console.WriteLine("Month:" + curDate.Month);//系统月
		Console.WriteLine("Day:" + curDate.Day);//系统日
		Console.WriteLine("DayOfWeek" + curDate.DayOfWeek);//系统周
		Console.WriteLine("Dayofyear" + curDate.DayOfYear);//系统年
		Console.WriteLine("Hour:" + curDate.Hour);//经历的时间

	}
}
